package com.china_goldcard.igas.ui;

import android.os.Bundle;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;

import com.andview.refreshview.XRefreshView;
import com.china_goldcard.igas.R;
import com.china_goldcard.igas.ui.core.BaseActivity;
import com.china_goldcard.igas.ui.pages.HomePage;
import com.china_goldcard.loadingbutton.ProgressGenerator;
import com.china_goldcard.loadingbutton.iml.ActionProcessButton;
import com.daimajia.numberprogressbar.NumberProgressBar;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;


public class MainActivity extends BaseActivity {

    @BindView(R.id.main_list_view)
    ListView listView;

    @BindView(R.id.custom_view)
    XRefreshView xRefreshView;

    @BindView(R.id.main_tv)
    TextView tv;

    @BindView(R.id.main_image)
    ImageView imageView;

    @BindView(R.id.pro_number_view)
    NumberProgressBar progressBar;

    @BindView(R.id.btnSignIn)
    ActionProcessButton actionProcessButton;

    private ProgressGenerator progressGenerator = new ProgressGenerator(5);

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ButterKnife.bind(this);
        //queryVersion();
    }

    @Override
    protected Integer layoutResource() {
        return R.layout.activity_main;
    }


    @Override
    protected boolean supportSlideClose() {
        return true;
    }

    @OnClick(R.id.btnSignIn)
    public void btnClicked(){
        toPage(HomePage.class,null);
    }
}
